<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="keys" content="">
<meta name="author" content="">
<base href="${pageContext.request.contextPath }/">
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/login.css">
<style>
</style>
</head>
<body>
	<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
		<div class="container">
			<div class="navbar-header">
				<div>
					<a class="navbar-brand" href="index.html" style="font-size: 32px;">尚筹网-创意产品众筹平台</a>
				</div>
			</div>
		</div>
	</nav>

	<div class="container" style="max-width: 500px;padding: 15px;text-align: center;">
		<h2 class="form-signin-heading">
			<i class="glyphicon glyphicon-log-in"></i> 尚筹网系统消息
		</h2>
		<!-- 从请求域中获取Exception对象，再进一步访问message属性就能够显示错误消息 -->
		<h3>${requestScope.exception.message}</h3>
		
		<!-- 返回上一步按钮 -->
		<c:if test="${requestScope.exception.message != '请登录以后再访问！'}">
			<button id="backBtn" class="btn btn-lg btn-success btn-block" style="width:60%;margin: 10% 0 10% 20%;">点我返回上一步</button>
		</c:if>
		
		<!-- 返回登录页面按钮 -->
		<c:if test="${requestScope.exception.message == '请登录以后再访问！'}">
			<button id="toLoginBtn" class="btn btn-lg btn-success btn-block" style="width:60%;margin: 10% 0 10% 20%;">点我去登录</button>
		</c:if>
		
	</div>
	<script src="jquery/jquery-2.1.1.min.js"></script>
	<script src="bootstrap/js/bootstrap.min.js"></script>
	<script src="layer/layer.js"></script>
	
	<script type="text/javascript">
		$(function(){
			
			// 点击返回上一步按钮
			$("#backBtn").click(function(){
				// 相当于浏览器的后退按钮
				window.history.back();
			});
			
			// 点击去登录按钮
			$("#toLoginBtn").click(function(){
				// 跳转登录页面
				window.location.href = "admin/to/login/page.html";
			});
		});
	</script>
</body>
</html>
